package com.librarysys.vo;

/**
 * Created by yuhui on 2017/7/12.
 */
public class ManagerPurviewVO {

    private Integer id;

    private String managerName;

    private String sysSet;

    private String readerSet;

    private String  bookSet;

    private  String borrowBack;

    private String  sysQuery;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public ManagerPurviewVO(String managerName, Boolean sysSet, Boolean readerSet, Boolean bookSet, Boolean borrowBack, Boolean sysQuery,Integer id) {
        this.managerName = managerName;
        this.sysSet = getSet(sysSet);
        this.readerSet = getSet(readerSet);
        this.bookSet = getSet(bookSet);
        this.borrowBack = getSet(borrowBack);
        this.sysQuery = getSet(sysQuery);
        this.id=id;
    }

    private String getSet(Boolean b){
        if(b){
            return "checked";
        }else{
            return "";
        }
    }


    public ManagerPurviewVO() {
    }

    public String getManagerName() {
        return managerName;
    }

    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    public String getSysSet() {
        return sysSet;
    }

    public void setSysSet(String sysSet) {
        this.sysSet = sysSet;
    }

    public String getReaderSet() {
        return readerSet;
    }

    public void setReaderSet(String readerSet) {
        this.readerSet = readerSet;
    }

    public String getBookSet() {
        return bookSet;
    }

    public void setBookSet(String bookSet) {
        this.bookSet = bookSet;
    }

    public String getBorrowBack() {
        return borrowBack;
    }

    public void setBorrowBack(String borrowBack) {
        this.borrowBack = borrowBack;
    }

    public String getSysQuery() {
        return sysQuery;
    }

    public void setSysQuery(String sysQuery) {
        this.sysQuery = sysQuery;
    }
}
